package com.cx.controller.lq;

import com.cx.pojo.Game;
import com.cx.pojo.ResultData;
import com.cx.service.lq.GamelistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("game")
public class GamelistController {
    @Autowired
    GamelistService gamelistService;

    @RequestMapping("gamelist")
    @ResponseBody
    public List<Game> selectAll() {
        List<Game> gameList = gamelistService.selectAll();
        return gameList;
    }
}
